import request from "@/utils/request";

// 获取员工管理数据列表
// export const getEmployee = (params) => {
//   return request.get('/employee/page', params)
// }
export const getEmployee = (params) => {
  return request({
    url: "/employee/page",
    method: "get",
    params,
  });
};

// 添加员工数据
export const addEmployee = (data) => {
  return request.post("/employee", data);
};
// 获取员工数据详情
export const getEmployeeDetail = (id) => {
  return request.get(`/employee/${id}`);
};
// 更新员工数据
export const updateEmployee = (data) => {
  return request.put("/employee", data);
};
